package grgu.rud.glava1.a5;

public class SrArifm {

	public static void main(String[] args) {

		int sum = 0;
		for (int i = 0; i < args.length; i++) {
			sum += Integer.parseInt(args[i]);
		}
		System.out.println("Number of arguments: " + args.length);
		System.out.println("Sum of arguments: " + sum);

		float sr = (float) sum / args.length;
		System.out.println("The arithmetic mean of the arguments: " + sr);

	}
}
